package com.cn.mmd.service;

import com.cn.mmd.mapper.QuestionWriteMapper;
import com.cn.mmd.mapper.QuestionnaireMapper;
import com.cn.mmd.model.QuestionWrite;
import com.cn.mmd.model.Questionnaire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/7/11 0011.
 */

@Service("questionnairesService")
public class QuestionnairesServiceImpl  implements  QuestionnairesService{

    @Autowired
    private QuestionnaireMapper questionnaireMapper;

    @Autowired
    private QuestionWriteMapper questionWriteMapper;


    @Override
    public Questionnaire selectById(Questionnaire questionnaire) {
        return questionnaireMapper.selectById(questionnaire);
    }

    @Override
    public List<QuestionWrite> selectByName(QuestionWrite questionWrite) {
        return questionWriteMapper.selectByName(questionWrite);
    }
}
